import { Button } from 'antd'
import { useNavigate } from 'react-router-dom'

const ErrorPage: React.FC = () => {
  const navigate = useNavigate()
  const goHome = () => {
    // TODO: 跳转首页
    navigate('/home')
  }
  return <div className="error-page">
    <Button type='primary' onClick={goHome}>返回首页</Button>
  </div>
}

export default ErrorPage